<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改图片</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
			<link rel="stylesheet" type="text/css" href="<%=basePath%>jslib/bootstrap/css/bootstrap-datetimepicker.min.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		<script src="<%=basePath%>jslib/bootstrap/js/bootstrap.min.js"></script>
		<script src="<%=basePath%>jslib/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
			<script src="<%=basePath%>jslib/bootstrap/js/bootstrap-datetimepicker.zh-CN.js"></script>
   
	

  </head>
  
 <body class="content1">
		<div class="header">
			<h1 class="page-title">
				添加文章
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">文章管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				添加文章
			</li>
		</ul>

		<div class="container-fluid">
				<div class="row-fluid">
				<div class="span12">
					<div class="alert alert-info">
					 
						 <strong>警告!</strong> 上传完图片不要刷新页面
					</div>
				</div>
				
				
					<div class="btn-toolbar">
					<input type="hidden" name="cmd" value="add"/>
					
						<a href="<%=basePath%>sys/nav?cmd=listfirst" class="btn">返回</a>

					</div>

					<div class="well">
						<div class="tab-pane active in">

							<label>
								图文文章图片：
							</label>
							 <form action="<%=basePath%>sys/upload" method="post" enctype="multipart/form-data" onsubmit="return check()">
    							<input type="file" name="pic" id="f_file"/>
    							<input type="submit" value="上传"/>
    							<span style="color:green">${filemsg}</span>
    							<input type="hidden" name="aid" value="${param.aid}"/>
    							
    
   							 </form>


							<div style="color: red">
								${msg}
							</div>
						</div>
					</div>
				
			</div>
		</div>
	</body>
</html>
